package com.google.code.jgib.manager;

import java.util.ArrayList;

import com.google.code.jgib.struct.BotSuperUser;
import com.google.code.jgib.struct.BotUser;
import com.google.code.jgib.struct.IBotUser;

public class BotUserManager {
	
	private final ArrayList<IBotUser> users = new ArrayList<>();
	
	private static BotUserManager instance;
	
	public static BotUserManager getInstance(){
		if(instance == null){
			instance = new BotUserManager();
		}
		
		return instance;
	}
	
	private BotUserManager(){}
	
	public void createUser(String nick, boolean superuser){
		IBotUser user;
		if(superuser){
			user = new BotSuperUser();
		}else{
			user = new BotUser();
		}
		
		user.setNick(nick);
		users.add(user);
	}

}
